<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>comic</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link type="text/css" rel="stylesheet" href="../../css/pepper-grinder/jquery-ui-1.8.16.custom.css" />
	<link type="text/css" rel="stylesheet" href="css/news.css" />
	<script type="text/javascript" src="../../js/jquery.min.js"></script>
	<script type="text/javascript" src="../../js/jquery-ui-1.8.16.custom.min.js"></script>
	<script type="text/javascript" src="../../js/jquery.mousewheel.min.js"></script>
	<script language="JavaScript" type="text/JavaScript">
		var hidetr = 0;
		var name;
		var author;
		$(document).ready(function() {
			var cururl = window.location.href;
			var newsid = cururl.split('=')[1];
			
			$(window).resize(function() {
				refresh();
			});
			refresh();
			
			$.getJSON("http://localhost:8080/zsk/news_getNews.do",{newsId:newsid},function(json){
					
				$("#title").html(json.title);
				$("#title2").html("来源："+json.author+"&nbsp;&nbsp;&nbsp;&nbsp;"+json.time);
				$("#newscontent").html(json.content);
				refresh();
			});

		});

		function refresh(){
			var winheight = $(window).height();
			var winwidth = $(window).width();
			$("#bodydiv").css("height",winheight);
			$("#newscontent").css("width",winwidth*3/4);
			$("#newscontent").css("padding-left",winwidth/8);
			$("#newscontent").css("height",winheight-100);
			
		}

		

		

		
	</script>
</head>
<body style="background-color=transparent;width:100%;margin-left:0px;margin-top:0px;">
	<div id="bodydiv" style="background:url(../../css/pepper-grinder/images/ui-bg_fine-grain_10_eceadf_60x60.png)">
		<div id="title" class="title"></div>
		<div id="title2" class="title2"></div>
		<div id="newscontent" class="newscontent"></div>
	</div>
	
</body>
</html>